package com.wander.methoddemo.a03staticdemo;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ArrayList<Student> list = new ArrayList<>();

        Student stu1 = new Student("zhangshanh",23,"nan");
        Student stu2 = new Student("wander",25,"nan");
        Student stu3= new Student("uhiodfowe",25,"nan");

        list.add(stu1);
        list.add(stu2);
        list.add(stu3);

        int max = StudentUtil.getMaxAgeStudent(list);
        System.out.println(max);
    }
}
